/**
  ******************************************************************************
  * @file           : route_gw.h
  * @brief          : Header for main.c file.
  *                   This file contains the common defines of the application.
  ******************************************************************************
  * @attention
  *
  ******************************************************************************
  */
#ifndef __route_gw_H
#define __route_gw_H

#include "route_base.h"

typedef enum
{
  ROUTE_PLTYP_GW_SBTB   = 0x50u,
  ROUTE_PLTYP_GW_ADDTP  = 0x51u,
	ROUTE_PLTYP_GW_DELTP  = 0x52u,
	ROUTE_PLTYP_GW_GETTP  = 0x53u,
  ROUTE_PLTYP_GW_SBLX   = 0x54u,
  ROUTE_PLTYP_GW_TIME   = 0x55u,
  ROUTE_PLTYP_GW_POWER  = 0x56u,
  ROUTE_PLTYP_GW_CAT1INFO = 0x57,
}Route_PlType_Gw_Type;

extern uint8_t Route_gw_up(Route_PayloadType *rtpl);

extern uint8_t Route_gw_down_sbtb(void);
extern uint8_t Route_gw_down_time(const char *str, uint8_t len);
extern uint8_t Route_gw_down_rl(const char *str, uint8_t len);
extern uint8_t Route_gw_down_login(const char *str, uint8_t len);
extern uint8_t Route_gw_down_gettopo(const char *str, uint8_t len);
extern uint8_t Route_gw_down_addtopo(const char *str, uint8_t len);
extern uint8_t Route_gw_down_deltopo(const char *str, uint8_t len);
extern uint8_t Route_gw_cmd(const char *str, uint8_t len);

extern void Route_gw_tonet_gettopo(void);
extern void Route_gw_tonet_addtop(uint8_t index);
extern void Route_gw_tonet_deltopo(uint8_t index);
extern void Route_gw_tonet_time(void);
extern void Route_gw_tonet_cat1info(void);
//extern void Route_gw_tonet_poweron(void);
extern void Route_gw_tonet_poweroff(void);
extern void Route_gw_tonet_sblx(void);

#endif /* __route_gw_H */
